package com.wx.chapter10.interface_;

/**
 * ClassName:InterfaceDetail02
 * Package :com.wx.chapter10.interface_
 * Description :
 *
 * @Author : coder_mu
 * @Create : 2023/6/9 - 11:19
 */
public class InterfaceDetail02 implements A{
    public static void main(String[] args) {
//        IB.n1 = 1;
        System.out.println(IB.n1);
        InterfaceDetail02 i = new InterfaceDetail02();
        System.out.println(i.a);
        System.out.println(A.a);
        System.out.println(InterfaceDetail02.a);
    }
}

interface A {
    int a = 23;//等价于public static final int a = 23;
}

interface IB {
    int n1 = 10;

    void hi();
}

interface IC {
    void say();
}

interface ID extends IB, IC {
}

interface IE {

}

class Pig implements IB, IC {

    @Override
    public void hi() {

    }

    @Override
    public void say() {

    }
}